import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

  const routes = [
    {path:'/',redirect:'/resonglist'},
   {path:'/resonglist',component:()=>import("../components/Recommend/ReSonglist")},
  //  歌单详情
  {path:'/resonglist/:id',component:()=>import("../components/Recommend/ReSonglistdetail")},
   {path:'/newsong',component:()=>import("../components/NewsMusic/Newsong")},
   {path:'/search',component:()=>import("../components/Search/search")},
  //  歌曲详情
   {path:'/newsong/:id',component:()=>import("../components/common/SonglistDetail")}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
